/* 注册页面样式 */
.register-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.register-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
}

.register-form h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group small {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-item {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-item input[type="radio"] {
    width: auto;
    margin-right: 8px;
}

.organization-fields,
.pilot-fields {
    border-top: 2px solid #e1e5e9;
    padding-top: 20px;
    margin-top: 20px;
}

.organization-fields h3,
.pilot-fields h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
}

.skill-item,
.certificate-item {
    border: 1px solid #e1e5e9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    position: relative;
}

.btn-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4757;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.btn-add {
    background: #2ed573;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 20px;
}

.btn-add:hover {
    background: #26d065;
}

.captcha-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-group input {
    flex: 1;
}

.captcha-group img {
    height: 40px;
    cursor: pointer;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
}

.btn-submit,
.btn-reset {
    width: 48%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-right: 4%;
}

.btn-submit {
    background: #667eea;
    color: white;
}

.btn-submit:hover {
    background: #5a6fd8;
}

.btn-reset {
    background: #6c757d;
    color: white;
}

.btn-reset:hover {
    background: #5a6268;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .register-form {
        padding: 20px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-submit,
    .btn-reset {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* 错误提示样式 */
.error {
    color: #ff4757;
    font-size: 12px;
    margin-top: 5px;
}

.success {
    color: #2ed573;
    font-size: 12px;
    margin-top: 5px;
}

/* 加载状态 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* 照片上传样式 */
.photo-upload {
    position: relative;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
}

.photo-upload:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.photo-input {
    display: none;
}

.btn-upload {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.btn-upload:hover {
    background: #0056b3;
}

.photo-preview {
    margin-top: 15px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.photo-preview .placeholder {
    color: #999;
    font-size: 14px;
}

/* 技能和证书照片上传 */
.skill-item .photo-upload, 
.certificate-item .photo-upload {
    background: white;
    border-color: #ccc;
}

/* 响应式照片上传 */
@media (max-width: 768px) {
    .photo-upload {
        padding: 15px;
    }
    
    .photo-preview img {
        max-width: 150px;
        max-height: 100px;
    }
}
